<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>DataSet.setDataColor</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="DataSet.htm">DataSet</a>.<wbr>setDataColor</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setDataColor(int dataColor [, int edgeColor [, int shadowColor [, int shadowEdgeColor ]]])
</div>
<p class="heading2">Description</p>
<div class="content">
Sets the colors used to draw the data set.<br><br>
The usage of the colors depend on the layer type. For example, in a bar layer, the <b>dataColor</b> and <b>edgeColor</b> are used as the fill and border color of the bar. In a line layer, the <b>dataColor</b> is used as the color of the line, while the <b>edgeColor</b> is used as the border of the line for 3D lines, and is ignored for 2D lines..
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>dataColor</td><td>(Mandatory)</td><td>The main color used to draw the data set.</td></tr><tr><td>edgeColor</td><td>-1</td><td>The color used to draw the edges or borders of the data set, if any. -1 means that the edges are drawn using the default border color of the layer (defined using <a href="Layer.setBorderColor.htm">Layer.setBorderColor</a>).</td></tr><tr><td>shadowColor</td><td>-1</td><td>The color to use to draw 3D shadows of the data set, if any. -1 means the shadow color will be a "darker" version of the dataColor, created by reducing the RGB intensities of the dataColor in half.</td></tr><tr><td>shadowEdgeColor</td><td>-1</td><td>The color to use to draw edges of the 3D shadows of the data set, if any. -1 means the shadow color will be a "darker" version of the edgeColor, created by by reducing the RGB intensities of the edgeColor in half.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
